#include <stdio.h>
#include <stdlib.h>

void test_score(void)
{
	int score;
	printf("enter:\n");
	scanf("%d",&score);
	if (score <0 || score >100)
	{
		fprintf(stderr,"input error！");
		exit(1);

	}
	switch(score/10)
	{
		case 10:
		case 9:
			puts("A");
			break;
		case 8:
			puts("B");
			break;
		case 7:
			puts("C");
			break;
		case 6:
			puts("D");
			break;
		default:
			puts("E");
			break;
			

	}	

	printf("score = %d\n",score);

}
/*
 * case 不带 break 的结果 
 * default 可不带break (不建议)
 * */

void test_animal(void)
{
	int ch;
	ch = getchar();
	scanf("%c",&ch);
	switch (ch)
	{
		case 'a':
		case 'A':
			printf("Ant");
		//	break;
		case 'b':
		case 'B':
			printf("Butterfly");	
		//	break;
		case 'c':
		case 'C':
			printf("Cobra");
		//	break;
		case 'd':
		case 'D':
			printf("Donk");
		//	break;
		
		default:
			printf("I don`t know");
		//	break;
	}		


}


int main(void)
{

	test_score();
	test_animal();

	exit(0);
}
